package edu.ctbu.ljy.bot.constain;

public enum ResultEnum {//枚举类
    UNKOWN_ERR(-999,"未知错误"),
    COMMON_ERR(-10,"通用错误"),
    LOGIN_ERR(-2,"登录错误，不正确的用户名和密码"),
    NOT_FIND(-3,"未找到该信息"),
    NOT_LOGIN(-4,"未登录"),
    SUCCESS(1,"成功")
    ;
    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }
}
